import { request } from "./request"

//获取商品列表
export async function getHttpGoodsList(queryInfo) {
  return await request({
    method: "get",
    url: "goods",
    params: queryInfo
  })
}

//删除单个商品
export async function deleteHttpDeleteGoodsById(id) {
  return await request({
    method: "delete",
    url: 'goods/' + id
  })
}

//添加商品
export async function postHttpAddGoods(addForm) {
  return await request({
    method: "post",
    url: "goods",
    data: addForm
  })
}